class DoubleQueue:
    def __init__(self):
        self.items = []

    def is_empty(self):
        return not self.items

    def add_front(self, item):
        self.items.append(item)

    def add_rear(self, item):
        self.items.insert(0, item)

    def remove_front(self):
        return self.items.pop()

    def remove_rear(self):
        return self.items.pop(0)

    def size(self):
        return len(self.items)

    def get_double_queue(self):
        return self.items


if __name__ == '__main__':
    q = DoubleQueue()
    q.add_front('1')
    q.add_rear('2')
    print(q.get_double_queue())
